package id.net.iconpln.bb.server.service.impl;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import id.net.iconpln.bb.server.dao.BbDao;
import id.net.iconpln.bb.server.dao.RakorDao;
import id.net.iconpln.bb.server.model.persistence.ModelPerencanaaBb;
import id.net.iconpln.bb.server.model.persistence.MasterAllMembers;
import id.net.iconpln.bb.server.model.persistence.MasterJadwal;
import id.net.iconpln.bb.server.model.persistence.MasterModul;
import id.net.iconpln.bb.server.model.persistence.MasterPasokan;
import id.net.iconpln.bb.server.model.persistence.MasterPemasok;
import id.net.iconpln.bb.server.model.persistence.MasterPembangkit;
import id.net.iconpln.bb.server.model.persistence.MasterSurveyor;
import id.net.iconpln.bb.server.model.persistence.MasterTransportir;
import id.net.iconpln.bb.server.model.persistence.RakorPKS;
import id.net.iconpln.bb.server.service.BbServices;


@Service("bbServiceImpl")
@Transactional(readOnly = true)
public class BbServicesImpl implements BbServices{

	@Autowired
	private BbDao bbDao;
	
	@Autowired
	private RakorDao rakorDao;


	@Override
	public List<MasterModul> getMasterModul() {
		// TODO Auto-generated method stub
		return bbDao.getMasterModul();
	}

	@Override
	public List<MasterAllMembers> getListMasterBb(String codeMaster) {
		// TODO Auto-generated method stub
		return bbDao.getListMasterBb(codeMaster);
	}


	@Override
	public List<ModelPerencanaaBb> getListPerencanaanBb(String id_pltu) {
		// TODO Auto-generated method stub
		return bbDao.getListPerencanaanBb(id_pltu);
	}


	@Override
	public List<MasterPembangkit> getkitall() {
		// TODO Auto-generated method stub
		return bbDao.getRkitall();
	}


	@Override
	public List<MasterPemasok> getpemasokall() {
		// TODO Auto-generated method stub
		return bbDao.getpemasokall();
	}


	@Override
	public List<MasterJadwal> getjadwalall() {
		// TODO Auto-generated method stub
		return bbDao.getjadwalall();
	}


	@Override
	public List<RakorPKS> getrakorall() {
		// TODO Auto-generated method stub
		return bbDao.getrakorall();
	}


	@Override
	public List<MasterSurveyor> getsurveyorall() {
		// TODO Auto-generated method stub
		return bbDao.getsureveyorall();
	}


	@Override
	public List<MasterTransportir> gettransall() {
		// TODO Auto-generated method stub
		return bbDao.gettransall();
	}


	@Override
	public List<MasterPasokan> getpasokanall() {
		// TODO Auto-generated method stub
		return bbDao.getpasokanall();
	}


	@Override
	public void saveMasterKit(MasterAllMembers masterallmembers,
			String codeMaster, String crud) {
		// TODO Auto-generated method stub
		bbDao.saveMasterKit(masterallmembers, codeMaster, crud);
	}


	@Override
	public void updateMasterKit(MasterAllMembers masterallmembers) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public List<Map> getListPengendalianBb(String kode, Map map) {
		// TODO Auto-generated method stub
		return rakorDao.getListPengendalianBb(kode, map);
	}

	@Override
	public List<Map> insertBbPengendalian(String kode, Map map) {
		// TODO Auto-generated method stub
		return rakorDao.insertBbPengendalian(kode, map);
	}

	@Override
	public List<Map> getListpemasok_rakor(String kode, Map map) {
		// TODO Auto-generated method stub
		return rakorDao.getListpemasok_rakor(kode, map);
	}

	@Override
	public List<Map> getListpltu_rakor(String kode, Map map) {
		// TODO Auto-generated method stub
		return rakorDao.getListpltu_rakor(kode, map);
	}

	@Override
	public List<Map> setRelationRakor(String kode, Map map) {
		// TODO Auto-generated method stub
		return rakorDao.setRelationRakor(kode, map);
	}


//	@Override
//	public List<Map> getMap() {
//		List<Map> lMap = new ArrayList<Map>();
//		return lMap;
//	}
	
}
